/* Layout */
import Layout from '@neu/biz-core/layout'
import ParentView from '@neu/biz-core/components/ParentView'

export default [
  {
    path: '/operations',
    name: 'hn_operations',
    redirect: 'noRedirect',
    alwaysShow: true,
    meta: {
      title: '运维管理',
      icon: 'plan',
      module: 'dcom',
      code: 'menu_operations'
    },
    component: Layout,
    children: [
      {
        path: 'opfuwutai',
        component: () => import('@neu/dcom-ui/views/workbench'),
        name: 'hn_opfuwutai',
        meta: { title: '服务台', icon: 'right-arrow', code: 'menu_opfuwutai', affix: true }
      },
      {
        path: 'malfunction',
        name: 'hn_malfunction',
        meta: {
          title: '事件管理',
          icon: 'right-arrow',
          module: 'dcom',
          workOrderType: 'malfunction',
          workOrderRequest: 'me',
          code: 'menu_operations_malfunction'
        },
        component: () => import('@neu/dcom-ui/views/workOrder')
      },
      {
        path: 'serviceRequest',
        name: 'hn_serviceRequest',
        meta: {
          title: '服务请求',
          icon: 'right-arrow',
          module: 'dcom',
          code: 'menu_operations_serviceRequest'
        },
        component: () => import('@neu/dcom-ui/views/serviceRequest')
      },
      // {
      //   path: 'incidentMe',
      //   name: 'dcom_myIncidentWorkOrder',
      //   meta: {
      //     title: '问题管理',
      //     icon: 'right-arrow',
      //     module: 'dcom',
      //     workOrderType: 'incident',
      //     workOrderRequest: 'me',
      //     code: 'menu_planCoordination_incidentMe'
      //   },
      //   component: () => import('@neu/dcom-ui/views/workOrder')
      // },
      {
        path: 'problemMe',
        name: 'dcom_myProblemWorkOrder',
        meta: {
          title: '问题管理',
          icon: 'right-arrow',
          module: 'dcom',
          workOrderType: 'problem',
          workOrderRequest: 'me',
          code: 'dcom_menu_planCoordination_problemMe'
        },
        component: () => import('@neu/dcom-ui/views/workOrder')
      },
      // {
      //   path: 'alterMe',
      //   name: 'dcom_myAlterOrder',
      //   meta: {
      //     title: '变更管理',
      //     icon: 'right-arrow',
      //     module: 'dcom',
      //     workOrderType: 'alter',
      //     workOrderRequest: 'me',
      //     code: 'dcom_menu_alterMe'
      //   },
      //   component: () => import('@neu/dcom-ui/views/workOrder')
      // },
      {
        path: 'change',
        name: 'dcom_change',
        meta: {
          title: '变更管理',
          icon: 'right-arrow',
          module: 'dcom',
          workOrderType: 'change',
          workOrderRequest: 'me',
          code: 'menu_dcom_change'
        },
        component: () => import('@neu/dcom-ui/views/workOrder')
      },
      {
        path: '/hnInspection',
        name: 'hn_hnInspection',
        redirect: 'noRedirect',
        alwaysShow: true,
        meta: {
          title: '发布管理',
          icon: 'right-arrow',
          module: 'dcom',
          code: 'menu_hnInspection'
        },
        component: ParentView,
        children: [
          {
            path: 'hnInspectionItem',
            name: 'hn_hnInspectionItem',
            meta: {
              title: '巡检内容设置',
              icon: 'right-arrow',
              code: 'menu_hnInspection_hnInspectionItem'
            },
            component: () => import('@neu/dcom-ui/views/hnInspection/inspectionItem/index')
          },
          {
            path: 'hnInspectionPlan',
            name: 'hn_hnInspectionPlan',
            meta: {
              title: '巡检计划设置',
              icon: 'right-arrow',
              code: 'menu_hnInspection_hnInspectionPlan'
            },
            component: () => import('@neu/dcom-ui/views/hnInspection/inspectionPlan/index')
          },
          {
            path: 'hnHealthInspectionPlan',
            name: 'hn_HealthhnInspectionPlan',
            meta: {
              title: '健康巡检设置',
              icon: 'right-arrow',
              code: 'menu_hnInspection_hnInspectionPlan_health'
            },
            component: () => import('@neu/dcom-ui/views/hnInspection/inspectionPlanHealth/index')
          },
          {
            path: 'hnInspectionTask',
            name: 'hn_hnInspectionTask',
            meta: {
              title: '每日例行巡检',
              icon: 'right-arrow',
              code: 'menu_operations_hnInspectionTask'
            },
            component: () => import('@neu/dcom-ui/views/hnInspection/inspectionTask/index')
          },
          {
            path: 'hnHealthInspectionTask',
            name: 'hn_hnHealthInspectionTask',
            meta: {
              title: '定期健康巡检',
              icon: 'right-arrow',
              code: 'menu_operations_hnHealthInspectionTask'
            },
            component: () => import('@neu/dcom-ui/views/hnInspection/inspectionTaskHealth/index')
          },
          {
            path: 'questionnaire',
            name: 'hn_questionnaire',
            meta: {
              title: '工作总结派发',
              icon: 'right-arrow',
              module: 'dcom',
              code: 'menu_operations_questionnaire'
            },
            component: () => import('@neu/dcom-ui/views/questionnaire')
          },
          {
            path: 'questionnairefeedback',
            name: 'hn_questionnairefeedback',
            meta: {
              title: '我的工作总结',
              icon: 'right-arrow',
              module: 'dcom',
              code: 'menu_operations_questionnairefeedback'
            },
            component: () => import('@neu/dcom-ui/views/questionnairefeedback')
          }
        ]
      },
      {
        path: '/servicelevel',
        name: 'hn_servicelevel',
        redirect: 'noRedirect',
        alwaysShow: true,
        meta: {
          title: '服务水平管理',
          icon: 'right-arrow',
          module: 'dcom',
          code: 'menu_servicelevel'
        },
        component: ParentView,
        children: [
          {
            path: 'serviceDirectoryAndProtocol',
            name: 'hn_serviceDirectoryAndProtocol',
            meta: {
              title: '服务目录及协议',
              icon: 'right-arrow',
              code: 'menu_serviceDirectoryAndProtocol'
            },
            // component: () => import('@neu/dcom-ui/views/hnInspection/inspectionItem/index')
            component: () => import('@neu/dcom-ui/views/serviceLevel')
          },
          {
            path: 'insuranceRegister',
            name: 'hn_insuranceRegister',
            meta: {
              title: '重保服务登记',
              icon: 'right-arrow',
              module: 'dcom',
              code: 'menu_operations_insuranceRegister'
            },
            component: () => import('@neu/dcom-ui/views/insurance/register')
          },
          {
            path: 'insuranceRegisterTask',
            name: 'hn_insuranceRegisterTask',
            meta: {
              title: '重保服务工单',
              icon: 'right-arrow',
              module: 'dcom',
              code: 'menu_operations_insuranceRegisterTask'
            },
            component: () => import('@neu/dcom-ui/views/insurance/registerTask')
          },
          {
            path: 'workDaily',
            name: 'hn_workDaily',
            meta: {
              title: '运维工作日志',
              icon: 'right-arrow',
              module: 'dcom',
              code: 'menu_operations_workDaily'
            },
            component: () => import('@neu/dcom-ui/views/workDaily')
          },
          {
            path: 'operationSupportWeekly',
            name: 'hn_operationSupportWeekly',
            meta: {
              title: '运维服务周报',
              icon: 'right-arrow',
              module: 'dcom',
              code: 'menu_operations_operationSupportWeekly'
            },
            component: () => import('@neu/dcom-ui/views/operationSupportWeekly')
          },
          {
            path: 'monthWeekly',
            name: 'hn_monthWeekly',
            meta: {
              title: '运维服务月报',
              icon: 'right-arrow',
              module: 'dcom',
              code: 'menu_operations_monthWeekly'
            },
            component: () => import('@neu/dcom-ui/views/monthWeekly')
          },
          {
            path: 'transferWeekly',
            name: 'hn_transferWeekly',
            meta: {
              title: '资产移交周报',
              icon: 'right-arrow',
              module: 'dcom',
              code: 'menu_operations_transferWeekly'
            },
            component: () => import('@neu/dcom-ui/views/transferWeekly')
          }
        ]
      },
      {
        path: '/knowledge',
        name: 'hn_knowledge',
        redirect: 'noRedirect',
        alwaysShow: true,
        meta: {
          title: '知识库',
          icon: 'right-arrow',
          module: 'dcom',
          code: 'menu_knowledge'
        },
        component: ParentView,
        children: [
          {
            path: 'knowledgeView',
            name: 'hn_knowledgeView',
            meta: {
              title: '知识内容维护',
              icon: 'right-arrow',
              code: 'menu_knowledge_knowledgeView'
            },
            component: () => import('@neu/dcom-ui/views/knowledge/knowledgeView/index')
          },
          {
            path: 'knowledgeComment',
            name: 'hn_knowledgeComment',
            meta: {
              title: '知识内容检索',
              icon: 'right-arrow',
              code: 'menu_knowledge_knowledgeComment'
            },
            component: () => import('@neu/dcom-ui/views/knowledge/knowledgeComment/index')
          }
        ]
      }
    ]
  },
  {
    path: '/workorders',
    name: 'hn_workorders',
    redirect: 'noRedirect',
    alwaysShow: true,
    meta: {
      title: '工单管理',
      icon: 'fixed',
      module: 'dcom',
      code: 'menu_workorders'
    },
    component: Layout,
    children: [
      {
        path: 'allWorkOrder',
        name: 'hn_allWorkOrder',
        meta: {
          title: '全部工单',
          icon: 'right-arrow',
          module: 'dcom',
          workOrderRequest: 'todo',
          code: 'menu_workorders_allWorkOrder'
        },
        component: () => import('@neu/dcom-ui/views/workOrder/all.vue')
      },
      {
        path: 'todoWorkOrder',
        name: 'hn_todoWorkOrder',
        meta: {
          title: '我的待办工单',
          icon: 'right-arrow',
          module: 'dcom',
          workOrderRequest: 'todo',
          code: 'menu_workorders_todoWorkOrder'
        },
        component: () => import('@neu/dcom-ui/views/workOrder')
      },
      {
        path: 'doneWorkOrder',
        name: 'hn_doneWorkOrder',
        meta: {
          title: '我的已办工单',
          icon: 'right-arrow',
          module: 'dcom',
          workOrderRequest: 'done',
          code: 'menu_workorders_doneWorkOrder'
        },
        component: () => import('@neu/dcom-ui/views/workOrder')
      },
      {
        path: 'myWorkOrder',
        name: 'hn_myWorkOrder',
        meta: {
          title: '我创建的工单',
          icon: 'right-arrow',
          module: 'dcom',
          workOrderRequest: 'me',
          code: 'menu_workorders_myWorkOrder'
        },
        component: () => import('@neu/dcom-ui/views/workOrder')
      }
    ]
  }
]
